﻿using Microsoft.Office.PowerPoint.STAMP.Core;
using NUnit.Framework;

namespace Microsoft.Office.PowerPoint.STAMP.Test
{
    [TestFixture]
    public class StringUnitTest
    {
        [Test]
        public void TestMethod1()
        {
            string text =
                "A woman whose car was spun across three lanes in an accident on the Southern Motorway has been refused accident compensation for her back injury on the grounds that her spinal problem is. Yahaloma Hochman, 48, has been taking morphine every day since January to cope with pain from the accident two months earlier. She walks with difficulty, cannot lift objects and cannot sit still for long.";

            string newword = text.TrimWords(45);

            Assert.AreEqual("A woman whose car was spun across three...", newword);
        }
    }
}
